package com.woniuxy.mapper;

import com.woniuxy.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
//@Mapper
public interface UserMapper {
    List<User> queryAll();
    User queryById(@Param("id") Integer id);
    // 根据姓名和性别模糊查询
    List<User> queryByCondition(@Param("name") String name,@Param("gender") String gender);
    Integer add(User user);
    Integer delete(@Param("id") Integer id);
    Integer updateByIdSelective(User user);
    User queryByName(User user);
}
